package com.hx.springcloud.client;


import com.hx.springcloud.pojo.Product;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * @Author chm
 * @Description //TODO
 * @Date 12:42 2020/2/27
 * @Param
 * @return
 * */


@FeignClient(value = "PRODUCT-DATA-SERVICE",fallback = ProductClientFeignHystrix.class)
public interface ProductClientFeign {

    /**
     * 产品列表
     * @return
     */
    @GetMapping("/products")
    public List<Product> listProdcuts();
}
